home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / rdist-6.1 / rdist-6 / rdist-6.1.0-linuxpl2 / config / os-isc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-31  |  4.4 KB  |  172 lines

  1. /*
  2.  * Copyright (c) 1993 Michael A. Cooper
  3.  * Copyright (c) 1993 Regents of the University of California.
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms, with or without
  7.  * modification, are permitted provided that the following conditions
  8.  * are met:
  9.  * 1. Redistributions of source code must retain the above copyright
  10.  *    notice, this list of conditions and the following disclaimer.
  11.  * 2. Redistributions in binary form must reproduce the above copyright
  12.  *    notice, this list of conditions and the following disclaimer in the
  13.  *    documentation and/or other materials provided with the distribution.
  14.  * 3. All advertising materials mentioning features or use of this software
  15.  *    must display the following acknowledgement:
  16.  *    This product includes software developed by the University of
  17.  *    California, Berkeley and its contributors.
  18.  * 4. Neither the name of the University nor the names of its contributors
  19.  *    may be used to endorse or promote products derived from this software
  20.  *    without specific prior written permission.
  21.  *
  22.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  23.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  26.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  27.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  28.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  29.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  31.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32.  * SUCH DAMAGE.
  33.  */
  34.  
  35. /*
  36.  * $Id: os-isc.h,v 1.7 1994/03/31 04:33:54 mcooper Exp $
  37.  */
  38.  
  39. /*
  40.  *  os-isc.h file (INTERACTIVE UNIX)
  41.  */
  42.  
  43. /*
  44.  * Define the following name for use in #ifdef's.
  45.  * The value should be all upper-case with no periods (.).
  46.  */
  47. #if    !defined(ISC)
  48. #define ISC
  49. #endif
  50.  
  51. /*
  52.  * Set process args to messages that show up when running ps(1)
  53.  *
  54.  * Under some OS's, the SETARGS code will cause ": is not an identifier"
  55.  * errors for "special" commands.
  56.  */
  57. #define SETARGS
  58.  
  59. /*
  60.  * Define the type of directory routines your system has.
  61.  */
  62. #define DIR_TYPE    DIR_DIRENT
  63.  
  64. /*
  65.  * Determine what routines we have to get filesystem info.
  66.  */
  67. #define FSI_TYPE    FSI_GETMNTENT2
  68.  
  69. /*
  70.  * Type of non-blocking I/O.
  71.  */
  72. #define NBIO_TYPE    NBIO_FCNTL
  73.  
  74. /*
  75.  * Type of wait() function to use.
  76.  */
  77. #define WAIT_TYPE    WAIT_WAITPID
  78.  
  79. /*
  80.  * Type of argument passed to wait() (above).
  81.  */
  82. #define WAIT_ARG_TYPE    int
  83.  
  84. /*
  85.  * Select the type of executable file format.
  86.  */
  87. #define EXE_TYPE    EXE_COFF
  88.  
  89. /*
  90.  * Select the type of statfs() system call (if any).
  91.  */
  92. #define STATFS_TYPE    STATFS_SYSV
  93.  
  94. /*
  95.  * Type of arg functions we have.
  96.  */
  97. #define ARG_TYPE    ARG_VARARGS
  98.  
  99. /*
  100.  * UID argument type for chown()
  101.  */
  102. typedef uid_t CHOWN_UID_T;
  103.  
  104. /*
  105.  * GID argument type for chown()
  106.  */
  107. typedef gid_t CHOWN_GID_T;
  108.  
  109. /*
  110.  * Our types, usually these are uid_t and gid_t.
  111.  */
  112. typedef long UID_T;    /* Must be signed */
  113. typedef long GID_T;    /* Must be signed */
  114.  
  115. /*
  116.  * Generic pointer, used by memcpy, malloc, etc.  Usually char or void.
  117.  */
  118. typedef void POINTER;
  119.  
  120. /*
  121.  * Type of set file time function available
  122.  */
  123. #define SETFTIME_TYPE    SETFTIME_UTIME
  124.  
  125. /*
  126.  * Type of set line buffering function available
  127.  */
  128. #define SETBUF_TYPE    SETVBUF
  129.  
  130. /*
  131.  * Our socket pair type
  132.  */
  133. #define SOCKPAIR_TYPE    SOCKPAIR_SPIPE
  134.  
  135. /*
  136.  * Things we have
  137.  */
  138. /*#define HAVE_FCHOWN            /* Have fchown() */
  139. /*#define HAVE_FCHMOD            /* Have fchmod() */
  140. #define HAVE_SELECT            /* Have select() */
  141. #define HAVE_SAVED_IDS            /* Have POSIX style saved [ug]id's */
  142. #define POSIX_SIGNALS            /* Have POSIX signals */
  143.  
  144. /*
  145.  * Things we need
  146.  */
  147. #define NEED_UTIME_H            /* Need <utime.h> */
  148. #define NEED_LIMITS_H            /* Need <limits.h> */
  149. /*#define NEED_UNISTD_H            /* Need <unistd.h> */
  150.  
  151. /*
  152.  * Path to the remote shell command.
  153.  * Define this only if the pathname is different than
  154.  * that which appears in "include/paths.h".
  155.  */
  156. /*#define _PATH_REMSH    "/usr/bin/rsh"            /**/
  157.  
  158. /*
  159.  * Miscellaneous
  160.  */
  161. #define MNTTAB         "/etc/mnttab"
  162. #define NFS_TYPE_NAME     "NFS"
  163. #define MAXPATHLEN     PATH_MAX
  164. #define MNTTAB_H    <mnttab.h>    /* Name of mnttab.h include file */
  165. #include <sys/bsdtypes.h>
  166.  
  167. /*
  168.  * Filesystem compatibility
  169.  */
  170. #define mnt_mountp    mt_filsys
  171. #define mnt_fstype    mt_fstyp
  172.